package cn.huiyunche.bms.backend.service;

import cn.huiyunche.bms.base.mapper.AccountMapper;
import cn.huiyunche.bms.base.model.Account;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by zhaoguixin on 2017/7/14.
 */
@Service
public class AccountServiceImpl implements AccountService{

    private static final Logger LOGGER = LoggerFactory.getLogger(AccountServiceImpl.class);

    @Autowired
    private AccountMapper accountMapper;

    @Override
    public Account getAccountByCode(String code) {
        return accountMapper.selectByCode(code);
    }
}
